<div data-dux="table-bind">
    <div class="dux-page-header am-cf">
        <div class="page-title">
            <form class="am-form-inline" method="get" action="{url()}">
                <div class="am-form-group">
                    <input type="text" name="keyword" class="am-form-field" value="{$pageMaps.keyword}"
                           placeholder="搜索">
                </div>
                <div class="am-form-group">
                    <select class="am-form-field" name="type">
                        <option value="4">全部</option>
                        <option value="1" <!--if{$pageMaps.type == 1}-->selected <!--{/if}-->>待配货</option>
                        <option value="2" <!--if{$pageMaps.type == 2}-->selected <!--{/if}-->>配货中</option>
                        <option value="3" <!--if{$pageMaps.type == 3}-->selected <!--{/if}-->>配货完成</option>
                        <option value="0"  <!--if{$pageMaps.type == '0'}-->selected <!--{/if}-->>配货失败</option>
                    </select>
                </div>
                <div class="am-form-group">
                    <button type="submit" class="am-btn am-btn-primary am-icon-search"></button>
                </div>
            </form>
        </div>
    </div>
    <div class="dux-page-table">
        <table class="am-table dux-table" data-table>
            <thead>
            <tr>
                <th>订单号</th>
                <th>收货人</th>
                <th>收货地址</th>
                <th>联系电话</th>
                <th class="am-text-center">配货状态</th>
                <th class="am-text-center" width="150">管理</th>
            </tr>
            </thead>
            <tbody>
            <!--loop{$list as $vo}-->
            <tr>
                <td>
                    {$vo.order_no}
                </td>
                <td>
                    {$vo.receive_name}
                </td>
                <td>
                    {$vo.receive_province} {$vo.receive_city} {$vo.receive_region} {$vo.receive_address}
                </td>
                <td>
                    {$vo.receive_tel}
                </td>
                <td class="am-text-center">
                    <!--if{$vo.parcel_status == 0}-->
                    <span>配货失败</span>
                    <!--{/if}-->
                    <!--if{$vo.parcel_status == 1}-->
                    <span class="am-text-danger">待配货</span>
                    <!--{/if}-->
                    <!--if{$vo.parcel_status == 2}-->
                    <span class="am-text-warning">配货中</span>
                    <!--{/if}-->
                    <!--if{$vo.parcel_status == 3}-->
                    <span class="am-text-success">配货完成</span>
                    <!--{/if}-->
                </td>
                <td class="am-text-center">
                    <a class="am-btn am-btn-warning  am-btn-xs" title="打印" href="{url('printInfo', ['id'=>$vo['parcel_id']])}"><i class="am-icon-print"></i></a>

                    <!--if{$vo.parcel_status <> 0 && $vo.parcel_status <> 3}-->
                    <a class="am-btn am-btn-primary am-btn-xs" href="javascript:;" title="配货状态" data-dux="dialog-open" data-title="发货状态" data-height="325px" data-url="{url('status', ['id' => $vo['parcel_id']])}"><i class="am-icon-circle-o"></i></a>
                    <!--{else}-->
                    <a href="javascript:;" data-dux="dialog-alert" data-title="无法更改配货状态" class="am-btn am-btn-default am-btn-xs"><i class="am-icon-circle"></i></a>
                    <!--{/if}-->
                    <a class="am-btn am-btn-danger am-btn-xs" href="javascript:;"
                       data-url="{url('del')}" data-id="{$vo.parcel_id}" title="删除" data-del><i
                            class=" am-icon-trash"></i></a>
                </td>
            </tr>
            <!--{/loop}-->
            </tbody>
        </table>
    </div>
    <div class="dux-page-foot am-cf">
        {$page}
    </div>
</div>